from itertools import count
num = 50
count = 0
for i in range(1,num):
# 偶数
     if i % 2 == 0 :
      count += 1
print("在1到",num,"之间有","个偶数")